<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<title>${appname}</title>
<%@ include file="/WEB-INF/view/common/css_js_base.jsp"%>
<script type="text/javascript">
$(document).ready(function(){
	 $.injectOrderFeature('searchForm','${param.orderName}','${param.order}');
});
/**
 * 表单查询提交
 */
function search(form){
 $(form).appendPagerParaStr();
 return true;
}
</script>
</head>
<body>
<%@ include file="/WEB-INF/view/common/navbar.jsp"%>
<div class="container">
	<div class="row">
		<div class="col-md-12">
			<nav class="navbar navbar-default" role="navigation">
				<div class="container">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#my-sub-navbar">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="#">&nbsp;</a>
					</div>
			
					<div class="collapse navbar-collapse" id="my-sub-navbar">
						<ul class="nav navbar-nav">
						<li class="active"><a href="${ctx}/monitor/cm_data_list.do">常规数据</a></li>
						<li><a href="${ctx}/monitor/file_data_list.do">大文件数据</a></li>
						<li><a href="javascript:todo()">数据库数据</a></li>
						</ul>
					</div>
				</div>
			</nav>
			<div class="panel panel-default">
				  <div class="panel-heading">
				        常规数据发送监控
				  </div>
				  <div class="panel-body">
				  	<div class="row">
				  		<div class="col-md-8">
						  	<form class="form-inline" role="form" action="${ctx}/monitor/cm_data_list.do" method="post" id="searchForm" onsubmit="return search(this)">
							  <div class="form-group">
							    <label class="control-label">接收节点</label>
							    <input type="text" class="form-control input-sm"/>
							  </div>
							  <div class="form-group">
							    <label class="control-label">接收系统</label>
							    <input type="text" class="form-control input-sm"/>
							  </div>
							  <div class="form-group">
							    <label class="control-label">状态</label>
							    <input type="text" class="form-control input-sm"/>
							  </div>
							  
							  <div class="mg-top12">
								  <div class="form-group">
								    <label class="control-label">开始时间</label>
								    <input type="text" class="form-control input-sm"/>
								  </div>
								  <div class="form-group">
								    <label class="control-label">结束时间</label>
								    <input type="text" class="form-control input-sm"/>
								  </div>
								  <div class="form-group">
								    <label class="control-label">&nbsp;</label>
								    <a href="#" class="btn btn-primary btn-sm btn-search">查找</a>
								  </div>
							  </div>
							</form>
						</div>
						<div class="col-md-4 text-right">
							<!-- <a class="btn btn-warning btn-sm btn-delete" href="javascript:void()">批量删除</a> -->
						</div>
					</div>
				  	<hr/>
					<table class="table table-striped table-hover">
						<thead>
							<tr>
							<th _orderCloumnName="recv_nodecode">接收节点</th>
							<th _orderCloumnName="recv_syscode">接收系统</th>
							<th>发送状态</th>
							<th _orderCloumnName="created">发送时间</th>
							<th>更新时间</th>
							<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="vo" items="${_data}">
							<tr>
								<td>${vo.recvNodecode}</td>
								<td>${vo.recvSyscode}</td>
								<td>${vo.status}</td>
								<td>${si:fmtDate(vo.created)}</td>
								<td>${si:fmtDate(vo.modified)}</td>
								<td>
									<a class="btn btn-primary btn-sm btn-view" href="${ctx}/registry/sys.do?id=${vo.id}">查看</a>
									<a class="btn btn-primary btn-sm" href="${ctx}/registry/sys.do?id=${vo.id}"><span class="glyphicon glyphicon-random"></span>  路由状态</a>
								</td>
							</tr>
							</c:forEach>
						</tbody>
					</table>
				    <jsp:include page="/WEB-INF/view/common/pg.jsp">
						<jsp:param value="${ctx}/monitor/cm_data_list.do" name="url"/>
						<jsp:param value="${_total}" name="total"/>
						<jsp:param value="" name="urlpara"/>
					</jsp:include>
				  </div>
			</div>
		</div>
	</div>
</div>
<%@ include file="/WEB-INF/view/common/footer.jsp"%>
</body>
</html>
